package com.care.doctor.remote;

import com.care.common.core.domain.Result;
import com.care.doctor.common.domain.DTODoctor;
import com.care.doctor.common.req.GetDoctorReq;
import com.care.doctor.remote.factory.RemoteDoctorServiceFallback;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "doctorRemoteService",value = "care-doctor",fallbackFactory = RemoteDoctorServiceFallback.class)
public interface DoctorRemoteService {
    @PostMapping("/doctor/findDoctor")
    public Result<PageInfo<DTODoctor>> findDoctor(@RequestBody GetDoctorReq req);
}
